<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="wl.webZuoYe4.DoNum" %>
<html>
<head>
    <title>2350300097 万朗</title>
</head>
<body>
<%
    String x=request.getParameter("x");
    String y=request.getParameter("y");
    String oper=request.getParameter("oper");
    String result="";
    if(x!=null&&y!=null&&oper!=null){
        result=DoNum.fun(x, y, oper);
    }
%>

<p><strong><font size="5">输入运算数、选择运算符：</font></strong></p>
<form name="form1" method="post" action="">
    <p>
        <font size="5"><strong>
            <input name="x" type="text" id="x" size="12">
            <select name="oper" id="oper">
                <option value="+">+</option>
                <option value="-">-</option>
                <option value="*">*</option>
                <option value="/">/</option>
            </select>
            <input name="y" type="text" id="y" size="12">
        </strong></font></p>
    <p>
        <font size="5"><strong>
            <input type="submit" name="Submit" value="提交你的问题">
        </strong></font></p>
</form>

<p><font size="5">计算结果是：
    <font color="#FF0000"><%=result %></font>
</font></p>
</body>
</html>
